package com.zoro.barn.business.service.sqldocument.business.document.dao;

import com.zoro.barn.business.service.sqldocument.business.document.entity.BarnDocumentInfo;
import com.zoro.barn.commons.db.annotations.MybatisMapper;
import com.zoro.barn.commons.db.annotations.NeedPage;

import java.util.List;

/**
 * @author zhaoxingwu
 */
@MybatisMapper
public interface BarnDocumentInfoMapper {

    void insert(BarnDocumentInfo info);
    /**
     * query document's basic info
     *
     * @param info conditions
     * @return result
     */
    @NeedPage
    List<BarnDocumentInfo> query(BarnDocumentInfo info);

    void updateByPid(BarnDocumentInfo info);

    BarnDocumentInfo selectById(String id);

    void deleteById(String id);
}
